import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from "axios";
Vue.use(ElementUI);

Vue.config.productionTip = false
axios.defaults.baseURL = 'http://localhost:8082';

//添加拦截器
axios.interceptors.response.use(function ( response){
  return response.data;
} ,function (error){
  console.log(error)
});

new Vue({
  router,
  store,
  render: function (h) { return h(App) }
}).$mount('#app')
